#include <stdio.h>
#define N 10

int main(void)
{
    int a[N], *p;

    printf("Enter %d numbers: ", N);
    for (int i = 0; i < N; i++)
        scanf("%d", &a[i]);

    printf("In reverse order: ");
    for (p = a + N - 1; p >= a; p--)
        printf("%d ", *p);
    
    printf("\n");

    return 0;
}